package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import com.qf.pojo.DtsGoods;
import com.qf.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    DtsGoodsMapper goodsMapper;
    @Override
    public int showAllGoodCount() {
        LambdaQueryWrapper<DtsGoods> queryWrapper=new LambdaQueryWrapper();
        queryWrapper.eq(DtsGoods::getDeleted,false);
        Integer integer = goodsMapper.selectCount(queryWrapper);
        return integer;
    }
}
